include_directories(${CMAKE_CURRENT_SOURCE_DIR})

add_library(common STATIC
    # ChatClient.cpp
    openssl/OpenSSL.cpp
    # data/Json.hpp
    # data/Json.cpp
    # data/Account.cpp
    # data/Account.h
    # data/ChatRoomInfo.cpp
    # data/ChatRoomInfo.h
    # data/FriendInfo.cpp
    # data/FriendInfo.h
    # data/UserInfo.cpp
    # data/UserInfo.h
    # packet/file/FileInfo.cpp
    # packet/file/FileInfo.h
    # packet/file/FilePacket.cpp
    # packet/file/FilePacket.h
    # packet/file/FilePacketEx.cpp
    # packet/file/FilePacketEx.h
    # packet/message/Message.cpp
    # packet/message/Message.h
    # packet/message/MessageQueue.hpp
    # packet/message/MessageVector.hpp
    # packet/request/Request.cpp
    # packet/request/Request.h
    # packet/response/Response.cpp
    # packet/response/Response.h
    # packet/AbstractPacket.h
    # packet/Packet.cpp
    # packet/Packet.h
)

target_link_libraries(common 
    PRIVATE
    qt5
    openssl
)
target_include_directories(common
    PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}/
)
  
